package E2013;

public class Exam4 {
    public static void main(String[] args) {
        double height = 100;
        double passway = 0;
        int count =0;
        while (height>0){
            count++;
            height = height/2;
            passway = passway + height*3;
            if (count==10){
                System.out.println("第10次落地的时候，经历了"+passway+"米，第10次反弹高度为："+height+"米。");
            }
        }

    }
}
